package com.cq.hd.member.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动次数流水表
 * </p>
 *
 * @author mYunYu
 * @since 2023-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_active_count_bill")
@ApiModel(value="TbActiveCountBillPo对象", description="活动次数流水表")
public class TbActiveCountBillPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "收支类型（1-收入，2-支出）")
    @TableField("bill_type")
    private Integer billType;

    @ApiModelProperty(value = "交易类型（1-邀请链接入驻，2-自主升级商家，3-开通/续费会员，4-充值次卡，5-发布活动）")
    @TableField("trade_type")
    private Integer tradeType;

    @ApiModelProperty(value = "交易次数")
    @TableField("trade_count")
    private Integer tradeCount;

    @ApiModelProperty(value = "关联id(商家链接id，开通/续费会员流水id，次卡充值流水id，活动id)")
    @TableField("relation_id")
    private Long relationId;

    @ApiModelProperty(value = "交易时间")
    @TableField("trade_time")
    private LocalDateTime tradeTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;


}
